var mongoose = require('mongoose');

mongoose.connect('mongodb://127.0.0.1:27017/Users',function(err){
    if(err){
        console.log(err);
        return;
    }
    console.log("User数据库连接成功")
})
var UserSchema = mongoose.Schema({
    username:String,
    password:String,
    mailbox:String,
    nickname:String,
    isVIP:String
})
module.exports = mongoose.model('Users',UserSchema,'user');
